<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/1/1 0001
  Time: 14:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="common/common-easyui.jsp"%>
<html>
<head>
    <script>
        $(function () {


            $("#visitorDatagrid").datagrid({
                title: '访客管理',
                url: '${pageContext.request.contextPath}/visitor/selectVisitorsPage.action',
                toolbar: [
                    {
                        text: '新增访客',
                        iconCls: "icon-add",
                        handler: function () {

                        }
                    }, {
                        text: '修改访客',
                        iconCls: "icon-edit",
                        handler: function () {

                        }
                    }, {
                        text: '查找访客',
                        iconCls: "icon-search",
                        handler: function () {

                        }
                    }
                ],
                columns: [[
                    {field: 'name', title: '访客姓名', width: 100},
                    {field: 'visiterId', title: '身份证号', width: 100},
                    {field: 'visitTime', title: '来访时间', width: 100},
                    {field: 'visitStudentName', title: '要找学生姓名', width: 100, align: 'right'},
                    {field: 'phone', title: '手机号', width: 100, align: 'right'},
                    {field: 'content', title: '来访事由', width: 100, align: 'right'}
                ]]

            });

        });

    </script>
</head>
<body>
<div>
    <table id="visitorDatagrid"></table>
</div>
</body>
</html>
